package com.jhl.seckill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jhl.seckill.entity.Goods;
import com.jhl.seckill.mapper.GoodsMQMapper;
import com.jhl.seckill.service.GoodsMQService;
import com.jhl.seckill.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author JHL
 * @since 2022-04-28
 */
@Service
@Primary
public class GoodsMQServiceImpl extends ServiceImpl<GoodsMQMapper, Goods> implements GoodsMQService {

    @Autowired
    private GoodsMQMapper goodsMQMapper;

    @Override
    public List<GoodsVo> findGoodsVo() {
        return goodsMQMapper.findGoodsVo();
    }

    @Override
    public GoodsVo findGoodsVobyGoodsId(Long goodsId) {
        return goodsMQMapper.findGoodsVobyGoodsId(goodsId);

    }
}
